package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售订单发货记录对象 sale_order_delivery
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
public class SaleOrderDelivery extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 发货ID */
    private Long deliveryId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 发货数量 */
    @Excel(name = "发货数量")
    private Long deliveryQuantity;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 发货人 */
    @Excel(name = "发货人")
    private String deliveryBy;

    /** 物流单号 */
    @Excel(name = "物流单号")
    private String trackingNumber;

    public void setDeliveryId(Long deliveryId) 
    {
        this.deliveryId = deliveryId;
    }

    public Long getDeliveryId() 
    {
        return deliveryId;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setDeliveryQuantity(Long deliveryQuantity) 
    {
        this.deliveryQuantity = deliveryQuantity;
    }

    public Long getDeliveryQuantity() 
    {
        return deliveryQuantity;
    }

    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }

    public void setDeliveryBy(String deliveryBy) 
    {
        this.deliveryBy = deliveryBy;
    }

    public String getDeliveryBy() 
    {
        return deliveryBy;
    }

    public void setTrackingNumber(String trackingNumber) 
    {
        this.trackingNumber = trackingNumber;
    }

    public String getTrackingNumber() 
    {
        return trackingNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deliveryId", getDeliveryId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("deliveryQuantity", getDeliveryQuantity())
            .append("deliveryTime", getDeliveryTime())
            .append("deliveryBy", getDeliveryBy())
            .append("trackingNumber", getTrackingNumber())
            .append("remark", getRemark())
            .toString();
    }
}
